package com.yqy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqy.entity.Project;
import com.yqy.entity.ProjectPo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author yiqianyi
 * @date 2022/3/22 17:08
 */
@Component
public interface ProjectMapper extends BaseMapper<Project> {
    @Select(value = "SELECT projectBelong FROM t_project GROUP BY projectBelong")
    List<ProjectPo> groupByBelong();
}
